package com.endpoint.memory;

import java.util.List;

import org.springframework.boot.actuate.endpoint.AbstractEndpoint;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * Description:
 *
 * @author yuanma
 * @version 1.0
 * @date: 2018/7/20 14:42
 * @since JDK 1.8
 */
@ConfigurationProperties(prefix = "endpoints.mem")
public class MemoryEndpoint extends AbstractEndpoint<Object> {

	private List<MemStatus> status;

	public MemoryEndpoint(List<MemStatus> status) {
		super("mem");
		this.status = status;
	}

	@Override
	public List<MemStatus> invoke() {
		return status;
	}

}